/**
 * 分页查询用户信息
 */
function showSportUserInfoByPage(sportType,status,curPage) {
    $.ajax({
        url:"/sportDetail/getSportUser",
        data:{
            sportType:sportType,
            status:status,
            page:curPage,
            rows:6
        },
        type:"post",
        dataType:"json",
        success:function (result) {
            var tbody = "";
            for(var i=0;i<result.rows.length;i++){
                tbody += '<input type="hidden" name="id" value="'+result.rows[i].id+'"';
                tbody += '<tr>';
                tbody += '<td>'+result.rows[i].username+'</td>';
                tbody += '<td>'+result.rows[i].userNickname+'</td>';
                tbody += '<td>'+result.rows[i].userSex+'</td>';
                tbody += '<td>'+result.rows[i].userBirth+'</td>';
                tbody += '<td>'+result.rows[i].userCity+'</td>';
                tbody += '<td>'+result.rows[i].userSign+'</td>';
                tbody += '</tr>';
            }
            $(".showUsersInfo").html(tbody);
            var pageTotal = result.total/6;
            var breakPage = '';
            breakPage += ' <li><a href="#">&laquo;</a></li>';
            for(var j=0;j<pageTotal;j++){
                breakPage += ' <li><a href="javascript:showSportUserInfoByPage( '+sportType+','+status+','+(j+1)+')">'+(j+1)+'</a></li>';
            }
            breakPage += ' <li><a href="#">&raquo;</a></li>';
            $(".userInfo .pagination").html(breakPage);
        },
        error:function () {
            alert("获取当前运动用户失败");
        }
    });
}